package com.jrx.anytxn.investor.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.investor.entity.AmAccountMainInvestorInfo;
import com.jrx.anytxn.investor.entity.AmLoanMainInvestorInfo;
import com.jrx.anytxn.investor.entity.TlPaymentAllocationInvestorLog;
import com.jrx.anytxn.investor.entity.TlPaymentInvestorLog;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: anytxn-cf-transaction
 * @description:
 * @author: xiaoyu.jing
 * @date: 2020-05-22 16:39
 **/
public interface IInvestorTlPaymentAllocationLogService {

    /**
     * 构建08还款交易账户
     *
     * @param paymentLog
     * @param loanMainInvestorInfo
     * @param bussinessDate
     * @return
     */
    TlPaymentAllocationInvestorLog buildTlPaymentAllocationInvestorLog(TlPaymentInvestorLog paymentLog, AmLoanMainInvestorInfo loanMainInvestorInfo, Date bussinessDate) throws TxnBizException;

    /**
     * 生成09还款交易账户
     * @param totalAllocationLog
     * @param acct
     * @param realPaymentAmnt
     * @return
     * @throws TxnBizException
     */
    TlPaymentAllocationInvestorLog buildTlPaymentAllocationLog(TlPaymentAllocationInvestorLog totalAllocationLog, AmAccountMainInvestorInfo acct, BigDecimal realPaymentAmnt)throws TxnBizException;
}
